<template>
	<view class="lfg-login-tip">
		<my-popup
			title="系统提示"
			leftText="否"
			rightText="是"
			@confirm="router('login')"
			@cancel="router('index')"
		>
			<view class="login-tip">登录用户才能使用，是否立即登录?</view>
		</my-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			router(e) {
				const that = this
				if(e == 'login') {
					that.$router.push({route:that.$routesConfig.login})
				} else if(e == 'index') {
					that.$router.switchTab({route:that.$routesConfig.index})
				}
			}
		}
	}
</script>

<style lang="less" scoped>
	.lfg-login-tip {
		.login-tip{
			padding:50rpx 0;
			font-size:32rpx;
		}
	}
</style>
